<template>
  <div>
      <h1>我是B</h1>
      <!-- <router-link to='/zywA'>点我返回A</router-link> -->
      <el-button plain @click="goA()">返回</el-button>
      <p>a-b的参数(query)：{{this.$route.query.aId}}</p>
      <p>a-b的参数(params):{{this.$route.params.aId}}</p>
      <p>传参时出现了name，就不会出现组件C</p>
      <!-- <CC/> -->
      <!-- <router-link to='/zywB/zywC'>cyemian</router-link> -->
      <router-view></router-view>

  </div>
</template>

<script>
import CC from './zywC'
export default {
  components: {
    CC
  },
  data(){
    return {
      
    }
  },

  mounted() {
    console.log(this.$route)
  },

  methods:{
    goA(){
      this.$router.push({
        path:'/zywA'
      })
    }
  }

}
</script>

<style>

</style>